
#import "DataType.h"

#define LEVELACHIEVEMENT_COUNT	6

enum LevelAchievementType
{
	LAT_Count		= 0,				// 总数
	LAT_Bonus		= 1,				// 加成
	LAT_Spell		= 2,				// 技能
	LAT_Score		= 3,				// 分数
	LAT_Perfect	= 4,				// 完美
	LAT_Last		= 5,				// 持久
};

@interface LevelAchieve : CCNode
{
	CCSprite* mIcon;
	LevelAchievementType mType;
	int mScore;
	int mLevel;
}

@property (nonatomic,readonly)LevelAchievementType laType;
@property (nonatomic,readonly)int score;
@property (nonatomic,readonly)int level;

-(id)initWithType:(LevelAchievementType)type;
-(bool)checkClick:(UITouch*)touch;

@end

@interface LevelAchievements : CCNode
{
	NSMutableArray* mAchieves;
	CCSprite* mBgDesc;
	CCLabelTTF* mLabelName;
	CCLabelTTF* mLabelDesc;
	CCLabelTTF* mLabelNext;
}

-(void)showDescription:(UITouch*)touch;
-(int)getAllScore;

@end